namespace OrderManager.Domain.Repositories
{
    /// <summary>
    /// Defines methods that some type implements to get customer's and order's repositories
    /// </summary>
    public interface IRepositoryFactory
    {
        /// <summary>
        /// Gets an instance of customer's repository
        /// </summary>
        /// <returns>An instance of type that implements <see cref="OrderManager.Domain.Repositories.ICustomerRepository"/></returns>
        ICustomerRepository GetCustomerRepository();

        /// <summary>
        /// Gets an instance of order's repository
        /// </summary>
        /// <returns>An instance of type that implements <see cref="OrderManager.Domain.Repositories.IOrderRepository"/></returns>
        IOrderRepository GetOrderRepository();
    }
}